package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.bean.Setmeal;
import com.itheima.dto.SetmealDto;
import org.springframework.transaction.annotation.Transactional;

public interface SetmealService extends IService<Setmeal> {
    /**
     * 新增套餐
     * @param setmealDto
     */
    @Transactional
    void saveWithDishes(SetmealDto setmealDto);

    /**
     * 删除套餐
     * @param ids
     */
    @Transactional
    void deleteWithDishes(Long[] ids);

    void updateWithFlavors(SetmealDto setmealDto);

    SetmealDto getBYIdWithDishs(Long id);
}
